<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      dosfstools-4.1
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-9.1">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 9.1
      </h4>
      <h3>
        Chapter&nbsp;5.&nbsp;File Systems and Disk Management
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="btrfs-progs.html" title=
          "btrfs-progs-5.4.1">Prev</a>
          <p>
            btrfs-progs-5.4.1
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="fuse.html" title="Fuse-3.9.0">Next</a>
          <p>
            Fuse-3.9.0
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="filesystems.html" title=
          "Chapter&nbsp;5.&nbsp;File Systems and Disk Management">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="dosfstools" name="dosfstools"></a>dosfstools-4.1
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to dosfstools
        </h2>
        <p>
          The <span class="application">dosfstools</span> package contains
          various utilities for use with the FAT family of file systems.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://github.com/dosfstools/dosfstools/releases/download/v4.1/dosfstools-4.1.tar.xz">
                https://github.com/dosfstools/dosfstools/releases/download/v4.1/dosfstools-4.1.tar.xz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 07a1050db1a898e9a2e03b0c4569c4bd
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 176 KB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 2.9 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: less than 0.1 SBU
              </p>
            </li>
          </ul>
        </div>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/dosfstools">http://wiki.linuxfromscratch.org/blfs/wiki/dosfstools</a>
        </p>
      </div>
      <div class="kernel" lang="en" xml:lang="en">
        <h2 class="sect2">
          <a id="dosfstools-kernel" name="dosfstools-kernel"></a>Kernel
          Configuration
        </h2>
        <p>
          Enable the following option in the kernel configuration and
          recompile the kernel:
        </p>
        <pre class="screen">
<code class="literal">File systems ---&gt;
  &lt;DOS/FAT/NT Filesystems ---&gt;
    &lt;*/M&gt; MSDOS fs support             [CONFIG_MSDOS_FS]
    &lt;*/M&gt; VFAT (Windows-95) fs support [CONFIG_VFAT_FS]</code>
</pre>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of dosfstools
        </h2>
        <p>
          Install <span class="application">dosfstools</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">./configure --prefix=/               \
            --enable-compat-symlinks \
            --mandir=/usr/share/man  \
            --docdir=/usr/share/doc/dosfstools-4.1 &amp;&amp;
make</kbd>
</pre>
        <p>
          This package does not come with a test suite.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <em class="parameter"><code>--enable-compat-symlinks</code></em>:
          This switch creates the <span class="application">dosfsck</span>,
          <span class="application">dosfslabel</span>, <span class=
          "application">fsck.msdos</span>, <span class=
          "application">fsck.vfat</span>, <span class=
          "application">mkdosfs</span>, <span class=
          "application">mkfs.msdos</span>, and <span class=
          "application">mkfs.vfat</span> symlinks required by some programs.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">fatlabel, fsck.fat, and mkfs.fat</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="fatlabel" name="fatlabel"></a><span class=
                    "term"><span class=
                    "command"><strong>fatlabel</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    set or get a MS-DOS filesystem label from a given device
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="fsckfat" name="fsckfat"></a><span class=
                    "term"><span class=
                    "command"><strong>fsck.fat</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    check and repair MS-DOS filesystems
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="mkfsfat" name="mkfsfat"></a><span class=
                    "term"><span class=
                    "command"><strong>mkfs.fat</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    create an MS-DOS filesystem under Linux
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-18 14:50:03 -0800
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="btrfs-progs.html" title=
          "btrfs-progs-5.4.1">Prev</a>
          <p>
            btrfs-progs-5.4.1
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="fuse.html" title="Fuse-3.9.0">Next</a>
          <p>
            Fuse-3.9.0
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="filesystems.html" title=
          "Chapter&nbsp;5.&nbsp;File Systems and Disk Management">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
